﻿
using Core.Domain.Common;
namespace Services.Configuration
{
    /// <summary>
    /// 公共设置扩展类
    /// </summary>
    public static class CommonSettingExtension
    {

        /// <summary>
        /// Redis端口号
        /// </summary>
        /// <param name="setting"></param>
        /// <returns></returns>
        public static int GetRedisProt(this CommonSettings setting)
        {
            return setting.RedisPort;
        }
    }
}
